perf(flow-chat): improve long session readiness#1134
Merged
Conversation
9d4fc44 to
5fb8184
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Performance Data
Measured on
release-fastbuilds, 5 runs each, same generated long-session fixture. Baseline is latestGCWing/BitFunmainatbc3e5f33; this PR is5fb8184.Startup is included only as a guardrail. The measured +4.1 ms startup delta is within run-to-run noise and this PR should not be interpreted as a startup optimization.
Rapid-Switch Breakdown
Diagnostic sample from the latest PR run, measured from the first click in a rapid A -> B -> C session switch sequence:
Per-session trace sample from that run:
Risks and Guardrails
Verification
GCWing/BitFunmainatbc3e5f33pnpm --dir src/web-ui run test:run src/flow_chat/components/modern/VirtualMessageList.layout.test.ts src/flow_chat/components/modern/ModernFlowChatContainer.history-state.test.tsx src/flow_chat/services/flow-chat-manager/SessionModule.test.ts(51 tests passed)pnpm run lint:web(0 errors; existing warning in untouchedFlowChatManager.ts)pnpm run check:repo-hygienegit diff --check gcwing/main..HEADpnpm run desktop:build:release-fastfor baseline and PR buildspnpm --dir tests/e2e run test:perfx5 for latest main baseline and x5 for this PR